<div class="row"> <h3 class="page-header">部门管理<small><gt name='info.id' value='0'>/修改<else/>/添加</gt></small></h3></div>
<div class="row">
	<div class="panel panel-default">
		<div class="panel-body">
			<form id="myform" class="form-horizontal">
				<div class="form-group">
					<label class="col-sm-3 control-label">上级部门：</label>
					<div class="col-sm-4 input-group">
						<select class="form-control" name="pid">
							<option value="0">格力集团</option>
							<volist name='list' id='list'>
								<option value="{$list.id}" <eq name='info.pid' value='$list["id"]'>selected</eq>>{:str_pad('', $list['num'] * 18 - 18, '&nbsp;&nbsp;&nbsp;')}|-{$list.name}</option>
							</volist>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">部门名称：<span class="c-red">*</span></label>
					<div class="col-sm-4 input-group">
						<input class="form-control required" name="name" value="{$info.name}" maxlength="100">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">备注：</label>
					<div class="col-sm-4 input-group">
						<input class="form-control url" name="descr" value="{$info.descr}" maxlength="200">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">排序：</label>
					<div class="col-sm-4 input-group">
						<input class="form-control digits" name="sort" value="{$info.sort|default=100}">
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-3 col-sm-5">
						<button class="btn btn-primary" type="submit">保存</button>
						<a href="{:U('Classify/index')}"><button class=" btn btn-default" type="button">返回</button></a>
					</div>
				</div>
				<input type='hidden' name='id' value='{$info.id}'>
			</form>
		</div>
	</div>
</div>